//package com.lagou.edu.controller;
//
//import org.springframework.security.core.context.SecurityContextHolder;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * @ClassName DemoController
// * @Description TODO
// * @Auth ying.xiao
// * @Date 2021/4/25
// * @Version 1.0.0
// */
//@RestController
//@RequestMapping("/demo")
//public class DemoController {
//
//    @GetMapping("/test")
//    public String test(){
//        Object details = SecurityContextHolder.getContext().getAuthentication().getDetails();
//        return "test";
//    }
//}
